Optimal. Leaf size=186 \[ \frac {b (3 a-5 b) \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)-b}}{2 f (a-b)}+\frac {\cos ^3(e+f x) \left (a+b \sec ^2(e+f x)-b\right )^{5/2}}{3 f (a-b)}-\frac {(3 a-5 b) \cos (e+f x) \left (a+b \sec ^2(e+f x)-b\right )^{3/2}}{3 f (a-b)}+\frac {\sqrt {b} (3 a-5 b) \tanh ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)-b}}\right )}{2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.16, antiderivative size = 186, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {3664, 453, 277, 195, 217, 206} \[ \frac {b (3 a-5 b) \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)-b}}{2 f (a-b)}+\frac {\cos ^3(e+f x) \left (a+b \sec ^2(e+f x)-b\right )^{5/2}}{3 f (a-b)}-\frac {(3 a-5 b) \cos (e+f x) \left (a+b \sec ^2(e+f x)-b\right )^{3/2}}{3 f (a-b)}+\frac {\sqrt {b} (3 a-5 b) \tanh ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)-b}}\right )}{2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 195
Rule 206
Rule 217
Rule 277
Rule 453
Rule 3664
Rubi steps
\begin {align*} \int \sin ^3(e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\left (-1+x^2\right ) \left (a-b+b x^2\right )^{3/2}}{x^4} \, dx,x,\sec (e+f x)\right )}{f}\\ &=\frac {\cos ^3(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{5/2}}{3 (a-b) f}+\frac {(3 a-5 b) \operatorname {Subst}\left (\int \frac {\left (a-b+b x^2\right )^{3/2}}{x^2} \, dx,x,\sec (e+f x)\right )}{3 (a-b) f}\\ &=-\frac {(3 a-5 b) \cos (e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{3 (a-b) f}+\frac {\cos ^3(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{5/2}}{3 (a-b) f}+\frac {((3 a-5 b) b) \operatorname {Subst}\left (\int \sqrt {a-b+b x^2} \, dx,x,\sec (e+f x)\right )}{(a-b) f}\\ &=\frac {(3 a-5 b) b \sec (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{2 (a-b) f}-\frac {(3 a-5 b) \cos (e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{3 (a-b) f}+\frac {\cos ^3(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{5/2}}{3 (a-b) f}+\frac {((3 a-5 b) b) \operatorname {Subst}\left (\int \frac {1}{\sqrt {a-b+b x^2}} \, dx,x,\sec (e+f x)\right )}{2 f}\\ &=\frac {(3 a-5 b) b \sec (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{2 (a-b) f}-\frac {(3 a-5 b) \cos (e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{3 (a-b) f}+\frac {\cos ^3(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{5/2}}{3 (a-b) f}+\frac {((3 a-5 b) b) \operatorname {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {\sec (e+f x)}{\sqrt {a-b+b \sec ^2(e+f x)}}\right )}{2 f}\\ &=\frac {(3 a-5 b) \sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a-b+b \sec ^2(e+f x)}}\right )}{2 f}+\frac {(3 a-5 b) b \sec (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{2 (a-b) f}-\frac {(3 a-5 b) \cos (e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{3 (a-b) f}+\frac {\cos ^3(e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{5/2}}{3 (a-b) f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.89, size = 188, normalized size = 1.01 \[ \frac {\sec (e+f x) \sqrt {\sec ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)} \left (\sqrt {(a-b) \cos (2 (e+f x))+a+b} (-8 (a-3 b) \cos (2 (e+f x))+(a-b) \cos (4 (e+f x))-9 a+37 b)+12 \sqrt {2} \sqrt {b} (3 a-5 b) \cos ^2(e+f x) \tanh ^{-1}\left (\frac {\sqrt {(a-b) \cos (2 (e+f x))+a+b}}{\sqrt {2} \sqrt {b}}\right )\right )}{24 \sqrt {2} f \sqrt {(a-b) \cos (2 (e+f x))+a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.82, size = 307, normalized size = 1.65 \[ \left [-\frac {3 \, {\left (3 \, a - 5 \, b\right )} \sqrt {b} \cos \left (f x + e\right ) \log \left (-\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} - 2 \, \sqrt {b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + 2 \, b}{\cos \left (f x + e\right )^{2}}\right ) - 2 \, {\left (2 \, {\left (a - b\right )} \cos \left (f x + e\right )^{4} - 2 \, {\left (3 \, a - 7 \, b\right )} \cos \left (f x + e\right )^{2} + 3 \, b\right )} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{12 \, f \cos \left (f x + e\right )}, -\frac {3 \, {\left (3 \, a - 5 \, b\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {-b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{b}\right ) \cos \left (f x + e\right ) - {\left (2 \, {\left (a - b\right )} \cos \left (f x + e\right )^{4} - 2 \, {\left (3 \, a - 7 \, b\right )} \cos \left (f x + e\right )^{2} + 3 \, b\right )} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{6 \, f \cos \left (f x + e\right )}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.80, size = 1104, normalized size = 5.94 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.98, size = 296, normalized size = 1.59 \[ \frac {4 \, {\left (a - b + \frac {b}{\cos \left (f x + e\right )^{2}}\right )}^{\frac {3}{2}} \cos \left (f x + e\right )^{3} - 12 \, \sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} {\left (a - b\right )} \cos \left (f x + e\right ) + 12 \, \sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} b \cos \left (f x + e\right ) + 6 \, b^{\frac {3}{2}} \log \left (\frac {\sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) - \sqrt {b}}{\sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + \sqrt {b}}\right ) + \frac {6 \, {\left (a b - b^{2}\right )} \sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{{\left (a - b + \frac {b}{\cos \left (f x + e\right )^{2}}\right )} \cos \left (f x + e\right )^{2} - b} - \frac {9 \, {\left (a b - b^{2}\right )} \log \left (\frac {\sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) - \sqrt {b}}{\sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + \sqrt {b}}\right )}{\sqrt {b}}}{12 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\sin \left (e+f\,x\right )}^3\,{\left (b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a\right )}^{3/2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________